Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-8595 Add unhealthy state and error field #539

Merged

Conversation

maximpertsov
Copy link
Contributor

@maximpertsov maximpertsov commented Aug 2, 2024

Add the resource unhealthy state + field detailing what error caused the resource to be unhealthy.

Related RDK change:

@github-actions github-actions bot added the safe to test committer is a member of this org label Aug 2, 2024
@maximpertsov maximpertsov force-pushed the RSDK-7903-unhealthy-state branch 3 times, most recently from 72cbffb to df76c7a Compare August 2, 2024 19:00
@@ -389,11 +389,13 @@ message ResourceStatus {
STATE_UNCONFIGURED = 1;
// a resource that is being configured.
STATE_CONFIGURING = 2;
// a resource that has been successfully configured once and is not being
// a resource that has been successfully configured once, is healthy, and is not being
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does healthy mean ready state? maybe we can explicitly say ready for clarity

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is not as clear as it could be - I changed this to "not unhealthy" since we have a definition for that state. I don't want to conflate "ready" with "healthy" too much since a resource can be "healthy" (no errors) but re-configuring or removing.

@maximpertsov maximpertsov added the ready-for-protos add this when you want protos to compile on every commit label Aug 2, 2024
@maximpertsov maximpertsov added safe to test committer is a member of this org protos-compiled and removed protos-compiled safe to test committer is a member of this org ready-for-protos add this when you want protos to compile on every commit labels Aug 2, 2024
@maximpertsov maximpertsov added ready-for-protos add this when you want protos to compile on every commit safe to test committer is a member of this org protos-compiled and removed safe to test committer is a member of this org ready-for-protos add this when you want protos to compile on every commit labels Aug 2, 2024
@maximpertsov maximpertsov merged commit 3f99eff into viamrobotics:main Aug 2, 2024
14 of 26 checks passed
@maximpertsov maximpertsov deleted the RSDK-7903-unhealthy-state branch August 2, 2024 21:12
@maximpertsov maximpertsov changed the title RSDK-7903 Add unhealthy state and error field RSDK-8595 Add unhealthy state and error field Aug 20, 2024
maxhorowitz added a commit that referenced this pull request Sep 16, 2024
* main: (22 commits)
  DATA-3094: Add CLI args to SubmitCustomTrainingJobRequest (#550)
  bump min golang version (#548)
  DATA-3054: Added UpdateBoundingBox (#547)
  RSDK-8595 update docs with new behavior (#546)
  APP-3604 build endpoints for external oauth and repos (#544)
  add last updated to fragment proto (#540)
  APP-5851: Add optional visibility field to `CreateFragmentRequest` (#543)
  APP-5314 - add dates and limit to GetRobotPartLogsRequest (#538)
  RSDK-7903 Add unhealthy state and error field (#539)
  RSDK-8381 add viam server version to API (#537)
  [APP-5417]: Undo APP-5417 (#536)
  [APP-5417]: Accommodate pagination for GetRobotPartHistory in api (#535)
  Data 2816/get training job logs (#534)
  DATA-2792 - Add URL to UpdateRegistryItemRequest, but make it optional (#532)
  RSDK-8228 Add config status to machine status API (#531)
  Add revision field to config (#530)
  [APP-5420] Add ListMachineFragments request and response (#525)
  [APP-5400]: Add GetFragmentHistory proto (#524)
  RSDK-7899 Add MachineStatus to RobotService (#527)
  RSDK-8083: add LogPatternConfig field to RobotConfig API (#526)
  ...
maxhorowitz added a commit that referenced this pull request Sep 16, 2024
* main: (22 commits)
  DATA-3094: Add CLI args to SubmitCustomTrainingJobRequest (#550)
  bump min golang version (#548)
  DATA-3054: Added UpdateBoundingBox (#547)
  RSDK-8595 update docs with new behavior (#546)
  APP-3604 build endpoints for external oauth and repos (#544)
  add last updated to fragment proto (#540)
  APP-5851: Add optional visibility field to `CreateFragmentRequest` (#543)
  APP-5314 - add dates and limit to GetRobotPartLogsRequest (#538)
  RSDK-7903 Add unhealthy state and error field (#539)
  RSDK-8381 add viam server version to API (#537)
  [APP-5417]: Undo APP-5417 (#536)
  [APP-5417]: Accommodate pagination for GetRobotPartHistory in api (#535)
  Data 2816/get training job logs (#534)
  DATA-2792 - Add URL to UpdateRegistryItemRequest, but make it optional (#532)
  RSDK-8228 Add config status to machine status API (#531)
  Add revision field to config (#530)
  [APP-5420] Add ListMachineFragments request and response (#525)
  [APP-5400]: Add GetFragmentHistory proto (#524)
  RSDK-7899 Add MachineStatus to RobotService (#527)
  RSDK-8083: add LogPatternConfig field to RobotConfig API (#526)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-protos add this when you want protos to compile on every commit safe to test committer is a member of this org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants